<script src="<?php echo $this->baseUrl(); ?>/messagebox/jquery.ui.message.min.js" type="text/javascript"></script>
<?php $this->jQuery()->onLoadCaptureStart(); ?>
<?php for ($i = 0; $i < count($this->messages); $i++) : ?>
$("#message<?php echo $i; ?>").message({type:"<?php echo $this->messages[$i]['class']; ?>",dismiss: false});
<?php endfor; ?>
<?php $this->jQuery()->onLoadCaptureEnd(); ?>
<?php for ($i = 0; $i < count($this->messages); $i++) : ?>
<div id="message<?php echo $i; ?>"><?php echo $this->messages[$i]['text']; ?></div>
<?php endfor; ?>